<?php
/**
* @version 1.3.0
* @package RSform!Pro 1.3.0
* @copyright (C) 2007-2010 www.rsjoomla.com
* @license GPL, http://www.gnu.org/copyleft/gpl.html
*/

defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.view');
jimport('joomla.html.pane');

class RSFormViewConfiguration extends JView
{
	function display($tpl = null)
	{		
		JToolBarHelper::title('RSForm! Pro','rsform');
		
		JToolBarHelper::apply('configuration.apply');
		JToolBarHelper::save('configuration.save');
		JToolBarHelper::cancel('');
		
		$params = array('startOffset' => JRequest::getInt('tabposition', 0));
		$tabs =& JPane::getInstance('Tabs', $params, true);
		$this->assignRef('tabs', $tabs);
		
		$this->assign('code', RSFormProHelper::getConfig('global.register.code'));
		$lists['global.debug.mode'] = JHTML::_('select.booleanlist','rsformConfig[global.debug.mode]','class="inputbox"', RSFormProHelper::getConfig('global.debug.mode'));
		$lists['global.iis'] = JHTML::_('select.booleanlist','rsformConfig[global.iis]','class="inputbox"', RSFormProHelper::getConfig('global.iis'));
		$lists['global.editor'] = JHTML::_('select.booleanlist','rsformConfig[global.editor]','class="inputbox"', RSFormProHelper::getConfig('global.editor'));
		
		$this->assignRef('lists', $lists);
		
		parent::display($tpl);
	}
	
	function triggerEvent($event)
	{
		global $mainframe;
		$mainframe->triggerEvent($event);
	}
}